#include <iostream>
using namespace std;

template <class Type> void Print(Type a[], int n) {
    for (int i = 0; i < n; i++) {
        cout << a[i] << "  ";
    }
}

int main() {
    int a[] = {5, 6, 8};
    double b[] = {6.8, 9.6};

    Print(a, sizeof(a) / sizeof(int));
    Print(b, 2);
    cout << endl;

    return 0;
}
